﻿#pragma once
#pragma execution_character_set("utf-8")
// 本文件为utf-8 编码格式

#ifndef __GD__GdWebviewViewController__
#define __GD__GdWebviewViewController__

#include "CrossApp.h"


class GdWebviewViewController :
	public CAViewController
{

public:
	static GdWebviewViewController* create(std::string url, std::string title = "");
	GdWebviewViewController(std::string defaultUrl);

	virtual ~GdWebviewViewController();

	bool init();
protected:
	void viewDidLoad();
	void viewDidUnload();
	virtual void viewDidAppear();
	virtual void viewDidDisappear();
private:
	std::string defaultUrl;
	CAWebView *webview;
};
#endif /* defined(__HelloCpp__ViewController__) */